<!--
  @author tanghongjun
  @since 2018/10/19 08:59
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>在线客服分组</title>
</head>
<body>

<div class="layui-fluid">

    <blockquote class="layui-crumb">
        在线客服分组
    </blockquote>

    <div class="layui-card">

        <div class="layui-split">&nbsp;</div>

        <form method="post" action="/online/service/group/list.action" class="layui-form" id="queryForm" lay-filter="zmn-online-service-group-filter">
            <div class="layui-form" th:include="online/service/group/_query :: query "></div>
        </form>

        <div class="layui-card-body" id="table_body">
            <div th:replace="online/service/group/_table::table"></div>

            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/online/service/group/updateStatus.action')}">
                            <button class="layui-btn layui-btn-sm" lay-event="start">启用</button>
                            <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="stop">停用</button>
                        </zmn>
                    </div>
                    <div class="layui-btn-group">
                        <a lay-text="新增" th:lay-href="|/online/service/group/detail.action|" class="layui-btn layui-btn-sm layui-btn-primary"
                                th:if="${#authPermit.checkPermit('/online/service/group/detail.action')}">+新增
                        </a>
                    </div>
                </div>
            </script>
        </div>

    </div>

</div>
</body>
</html>
<script type="text/javascript" th:inline="javascript">

    var json = {
        items: [[${items}]],
        vo: [[${vo}]],
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]]
    };

    layui.config({
        version: 2020021211018,
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        online_service_group_list_js: "online/service/group/zmn.plat.online.service.group.list",
    }).use(['index', 'online_service_group_list_js']);

</script>